<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/

/**
 * Description of User
 *
 * @author dejo
 */
class Admin_Form_Netwerk extends ZendX_JQuery_Form {

    public function __construct() {

        parent::__construct($options);

        $this->setName('user');
        $this->setMethod('post');

        $header = new Zend_Form_Element_Text('header');
        $header->setRequired(true)
                ->addValidators(array(
                    array('StringLength', false, array(1, 150)),
                    ))
                ->addFilters(array('StripTags', 'StringTrim'))
                ->setLabel('Kop');
        $this->addElement($header);

        $header = new Zend_Form_Element_Text('message');
        $header->setRequired(true)
                ->addValidators(array(
                    array('StringLength', false, array(1, 150)),
                    ))
                ->addFilters(array('StripTags', 'StringTrim'))
                ->setLabel('Tekst');
        $this->addElement($header);

        $startDatum = new ZendX_JQuery_Form_Element_DatePicker('startDatum');
        $startDatum->setLabel('Start datum')
                ->addValidator('Date')
                ->setRequired(true);
        $this->addElement($startDatum);

        $eindDatum = new ZendX_JQuery_Form_Element_DatePicker('eindDatum');
        $eindDatum->setLabel('Eind datum')
                ->addValidator('Date')
                ->setRequired(true);
        $this->addElement($eindDatum);




        $submit = new Zend_Form_Element_Submit('Save');
        $submit->setLabel('Sla op');

        $this->addElement($submit);

    }
}
?>
